<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include  file="/common/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
	    <title>采购订单列表</title>
		<%@ include file="/common/common_h.jsp" %>
		<link href="${basePath }common/hplus/css/plugins/jqgrid/ui.jqgridffe4.css" rel="stylesheet">
		<script src="${basePath }common/hplus/js/plugins/layer/laydate/laydate.js"></script>
	</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>采购订单列表</h5>
                    </div>
                    <form id="search_from" action="${basePath}supplier/purList.shtml" method="post" class="form-horizontal">
                    <div class="ibox-content">
                        <div class="row">
                        	<div class="col-sm-5">
                            	<div class="form-group">
                            		<label class="col-sm-3 control-label">采购日期：</label>
                                    <div class="col-sm-4">
                                        <input readonly value="${startDate }" placeholder="开始日期" class="form-control input-sm layer-date" id="start" name="startDate" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
                                    </div>
                                    <label class="col-sm-1 control-label col-line">～</label>
                                    <div class="col-sm-4">
                                    	<input readonly value="${endDate }" placeholder="结束日期" class="form-control input-sm layer-date" id="end" name="endDate" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
                                    </div>
                                 </div>
                            </div>
                            <div class="col-sm-1">
                            </div>
                            <div class="col-sm-4">
                            	<div class="form-group">
                            		<label class="col-sm-4 control-label">订单号：</label>
	                            	<div class="col-sm-8">
                            			<input name="keyword" value="${keyword }" type="text" placeholder="请输入采购订单号" class="input-sm form-control">
                            		</div>
                            	</div>
                            </div>
                            <div class="col-sm-2">
								<button type="button" onclick="searchFn()" class="btn btn-sm btn-primary" style="float: right;"> 搜索</button>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-hover table-striped">
                                <thead>
                                    <tr>
                                    	<th>序号</th>
                                        <th>订单编号</th>
                                        <th>采购日期</th>
                                        <th>供应商名称</th>
                                        <th>金额</th>
                                        <th>订单状态</th>
                                        <th>预计发货日期</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	<c:forEach items="${pager.list }" var="pur" varStatus="st">
                                    <tr>
                                        <td>${st.count +(pager.page-1)*pager.pageSize  }</td>
                                        <td>${pur.FBILLNO }</td>
                                        <td>${pur.FDATE }</td>
                                        <td>${pur.SUPPLIER }</td>
                                        <td><fmt:formatNumber value='${pur.FBILLALLAMOUNT}' pattern='#,##.00'/></td>
                                        <td><custom:enum type="ddzt" value="${pur.F_PKSD_DDZT}"></custom:enum> </td>
                                        <td>${pur.F_PKSD_YJFHRQ }</td>
                                        <td>
                                        	<a href="${basePath}supplier/prepareEdit.shtml?id=${pur.FID}">更新状态</a>&nbsp;&nbsp;
                                        </td>
                                    </tr>
                                    </c:forEach>
                                </tbody>
                            </table>
                        </div>
						<custom:pager items="${pager}"></custom:pager>
                    </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</body>
</html>

